<%--
  Created by IntelliJ IDEA.
  User: shisjin
  Date: 2023/10/17
  Time: 13:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%@page import="com.example.wk6d2.bean.StudentBean" %>--%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%-- <%--%>
<%--     StudentBean studentBean = new StudentBean();--%>
<%--     studentBean.setName("李白");--%>
<%--     studentBean.setAge(18);--%>
<%--     studentBean.setNo("20220101");--%>
<%--     studentBean.getName();--%>
<%--     studentBean.getAge();--%>
<%--     studentBean.getNo();--%>
<%-- %>--%>

<jsp:useBean id="stu" class="com.example.wk6d2.bean.StudentBean">
    <jsp:setProperty name="stu" property="name" value="李白"></jsp:setProperty>
    <jsp:setProperty name="stu" property="age" value="18"></jsp:setProperty>
    <jsp:setProperty name="stu" property="no" value="20220101"></jsp:setProperty>
</jsp:useBean>

姓名：<jsp:getProperty name="stu" property="name"/>
<br>
年龄：<jsp:getProperty name="stu" property="age"/>
<br>
学号：<jsp:getProperty name="stu" property="no"/>

</body>
</html>
